<?php /*a:1:{s:66:"D:\AppServ\www\1803010144\app\zhongkl_forum\view\index\detail.html";i:1607438822;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/1803010144/public/static/zhongkl_forum/CSS/reset.css">
    <link rel="stylesheet" href="/1803010144/public/static/zhongkl_forum/CSS/基础框架.css">
    <link rel="stylesheet" href="/1803010144/public/static/zhongkl_forum/CSS/detail.css">
    <script type='text/javascript' src='/1803010144/public/static/zhongkl_forum/js/jquery-3.5.1.min.js'></script>
    
    
</head>

<body onload="selected()">
    <div class="container-nav">
        <div id="nav-top"></div>
        <div class="container">
            <div class="nav">
                <nav id="nav-left">
                    <div class="nav-left tuwen">
                        <img id="logo" src="/1803010144/public/static/zhongkl_forum/images/logo.png" alt="">
                        <span><b>LearnKu</b></span>
                        <img id="xiala" src="/1803010144/public/static/zhongkl_forum/images/下拉.png" alt="">
                    </div>
                    <a id="box" href="<?php echo url('Index/Index'); ?>"class="nav-left">社区</a>
                    <!-- 下拉菜单栏 -->
                    <div id="down" style="display: none;">
                        <ul id="show" value="隐藏">
                            <!-- 帖子菜单列表1803010144 -->
                            <?php if(is_array($sec) || $sec instanceof \think\Collection || $sec instanceof \think\Paginator): $i = 0; $__LIST__ = $sec;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$secNow): $mod = ($i % 2 );++$i;?>
                            <li><a href="<?php echo url('Index/view',['sid' => $secNow['s_id']]); ?>"><?php echo htmlentities($secNow['s_name']); ?></a></li>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </ul>
                    </div>
                    <script type='text/javascript' src="/1803010144/public/static/zhongkl_forum/js/xiala.js"></script>
                   
                    <!-- <a href="#" class="nav-left">动态</a> -->
                    <div class="nav-left tuwen">
                        <a href="">
                            <img id="shequ" src="/1803010144/public/static/zhongkl_forum/images/所有社区.png" alt="">
                            <span>所有社区</span>
                            <img id="new" src="/1803010144/public/static/zhongkl_forum/images/new.png" alt="">
                        </a>
                    </div>
                    <form action="">
                        <input type="" placeholder="搜索">
                    </form>
                </nav>
                <nav id="nav-right">
                    <a  href="<?php echo url('Index/view'); ?>" class="nav-right">论坛门户</a>
                    
                    <a id="box" href="<?php echo url('Index/view'); ?>" class="nav-right">论坛门户</a>
                    <!-- 下拉菜单栏 -->
                    <div id="down" style="display: none;">
                        <ul id="show" value="隐藏">
                            <!-- 帖子菜单列表1803010144 -->
                            <?php if(is_array($sec) || $sec instanceof \think\Collection || $sec instanceof \think\Paginator): $i = 0; $__LIST__ = $sec;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$secNow): $mod = ($i % 2 );++$i;?>
                            <li><a href="<?php echo url('Index/view',['sid' => $secNow['s_id']]); ?>"><?php echo htmlentities($secNow['s_name']); ?></a></li>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </ul>
                    </div>
                    <a href="<?php echo url('Index/me'); ?>" class="nav-right">上传头像</a>
                    <a href="<?php echo url('User/login'); ?>" class="nav-right">登录</a>
                    <a href="<?php echo url('User/reg'); ?>" class="nav-right">注册</a>
                    <a href="<?php echo url('Index/logOut'); ?>" class="nav-right">注销</a>
                    <a href="<?php echo url('User/contact'); ?>" class="nav-right">联系我们</a>
                    <?php if((session('uNick') !== null)): ?>
                    <a href="" class="nav-right"><span>欢迎：<?php echo session('uNick'); ?></span></a>
                    <img src="/1803010144/public/static/zhongkl_forum/upload/<?php echo session('uImg'); ?>" alt="">
                    <?php endif; ?>
                </nav>
            </div>
        </div>
    </div>
    <!-- 下拉菜单js 1803010144 -->

    <!-- 发布帖子内容 1803010144-->
    <div class="centered">
        <div class="centered-left">
            <!-- 发帖表单1803010144 -->
            <?php if(($pageNull == 1)): ?>
            <div class="u_title">
                <span><?php echo $mes['m_title']; ?></span>
            </div>
            <div class="post-info">
                <div class="u_user">
                    <span>浏览：68</span>
                    <span><?php echo htmlentities(date("Y-m-d h:i:s a",!is_numeric($mes['m_createat'])? strtotime($mes['m_createat']) : $mes['m_createat'])); ?></span>
                    <span>类型</span>
                </div>
                <div class="m_content">
                    <span>
                        <?php echo htmlentities($mes['m_content']); ?>
                    </span>
                </div>
            </div>
            <?php endif; ?>
            <!-- 评论区 -->
            <div class="clear"></div>
            <?php if(is_array($res) || $res instanceof \think\Collection || $res instanceof \think\Paginator): $i = 0; $__LIST__ = $res;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$resRow): $mod = ($i % 2 );++$i;?>
            <div class="comment">
                <!-- 显示评论 -->
                
                <div class="comment-top">
                    <!-- 评论用户信息 -->
                    <!-- 循环打印用户评论信息 -->
                    <img src="/1803010144/public/static/zhongkl_forum/upload/<?php echo htmlentities($resRow['u_img']); ?>" alt="" class="u_nick">
                    <!-- 评论板块 -->
                    <div class="user-info">
                        <!-- 评论用户的个人信息排列 -->
                        <div class="u_cre">
                            <div class="pinglun_nick">
                                <!-- 用户姓名 -->
                                <span id="firstnick"><?php echo htmlentities($resRow['u_nick']); ?></span>
                                <span>评论时间：<?php echo htmlentities(date("Y-m-d",!is_numeric($resRow['r_createat'])? strtotime($resRow['r_createat']) : $resRow['r_createat'])); ?></span>
                                <!-- 评论时间 -->
                            </div>
                        </div>
                        <div class="u_info">
                            <p><?php echo htmlentities($resRow['r_content']); ?></p>
                            <!-- 这是用户评论的信息 -->
                        </div>
                    </div>
                    
                </div>
            </div>

            <?php endforeach; endif; else: echo "" ;endif; ?>
            <input id="hiddenS" type="hidden" value="<?php echo $select; ?>">
            <!-- 选择每次页码查询的次数 -->
            <!-- <?php echo url('index/detail'); ?> -->
            <form action="<?php echo url('index/detail'); ?>">
                <input name="mid" type="hidden" value="<?php echo $mes['m_id']; ?>">
                <div >
                    <span>共<?php echo $res_length; ?>条，每条显示
                        <select id="select" name="select"  onchange="return submit()">
                            <option disabled="disabled">-请选择-</option>
                            <option  value="5" >5</option>
                            <option id="option" value="10">10</option>
                            <option value="20">20</option>
                            <option  value="50">50</option>
                        </select>条</span>
                </div> 
            </form>
                
            <script>
                function selected() {
                    $a = $("#hiddenS").val();
                    console.log($a);
                    $("#select").find("option").each(function () {
                        if($(this).text() == $a){
                            $(this).attr("selected",true);
                        }
                    });
                }
            </script>
            
            <div class="paginations">
                <?php echo $res; ?>
            </div>
            <div class="clear"></div>
            <!-- 发表评论 -->
            <?php if((session('uNick') !== null)): ?>
            <form action="<?php echo url('index/doRes'); ?>" method="POST">
                <input  name="mid" type="hidden" value="<?php echo $mes['m_id']; ?>">
            <div class="comment-buttom">
                <img src="/1803010144/public/static/zhongkl_forum/upload/<?php echo session('uImg'); ?>" alt="" >
                <span><?php echo session('uNick'); ?></span>
                <div>
                    <textarea name="rcontent" class="com-input" placeholder="我要发言"></textarea>
                    <input type="submit" class="com-sub">
                </div>
            </div>
            </form>
            <?php endif; ?>
            
        </div>
        
        <div class="centered-right">
            <img style="width: 50px; height: 50px;" src="/1803010144/public/static/zhongkl_forum/upload/<?php echo $mes['u_img']; ?>" alt="">
            <div class="nav-left">
                <span class="unick">
                    <?php echo $mes['u_nick']; ?>
                </span><br>
                <span class="jifen">
                    积分：121 等级：LV1
                </span>
            </div>
        </div>
    </div>
    
    <div class="clear"></div>
    <div id="footer">
        <div id="footer-top">
            <div class="clumn">
                <div class="white-img bottom-img bottom-top1 bottom-nav">
                    <h4>
                        <img src="/1803010144/public/static/zhongkl_forum/images/bottom-logo.png" alt="">
                        <span>关于 Learnlku</span>
                    </h4>
                </div>
                <div class="lh-3 bottom-center bottom-top1">
                    <h4>LearnKu是终身编程者的修到场<br>
                        摒弃世俗浮躁，追求技术精湛
                    </h4>
                </div>
                <div class="bottom-a bottom-img bottom-top1 botton-center">
                    <h4><a href=""></a>
                        <img src="/1803010144/public/static/zhongkl_forum/images/蛋糕.png" alt="">
                        <span>LearnKu诞生的故事</span>
                    </h4></a>
                </div>
            </div>
            <div class="clumn">
                <div class="bottom-nav">
                    <h4>资源推荐</h4>
                </div>
                <div class="botton-center lh-3 mobe-1 bottom-a">
                    <h4>
                        <a href="">《社区使用指南》</a><br>
                        <a href="">《文档撰写指南》</a><br>
                        <a href="">《Learnlku》社区规范</a>
                    </h4>
                </div>
            </div>
            <div class="clumn">
                <div class="bottom-nav">
                    <h4>赞助商</h4>
                </div>
                <div class="bottom-top3">
                    <a href=""><img src="/1803010144/public/static/zhongkl_forum/images/UCLOUD.png" alt=""></a><br>
                    <a href=""><img src="/1803010144/public/static/zhongkl_forum/images/又拍云.png" alt=""></a><br>
                    <a href=""><img src="/1803010144/public/static/zhongkl_forum/images/sendClound.png" alt=""></a><br>
                </div>
            </div>
            <div class="clumn">
                <div class="bottom-nav">
                    <h4>其他信息</h4>
                </div>
                <div class="botton-center lh-3 mobe-1 bottom-a">
                    <h4>
                        <a href="">
                            <img src="/1803010144/public/static/zhongkl_forum/images/点赞.png" alt="">
                            软件外包</a><br>
                        <a href="">
                            <img src="/1803010144/public/static/zhongkl_forum/images/心跳.png" alt="">
                            成为版主</a><br>
                        <a href="">
                            <img src="/1803010144/public/static/zhongkl_forum/images/键盘.png" alt="">
                            所有测试</a><br>
                        <a href="">
                            <img src="/1803010144/public/static/zhongkl_forum/images/微信.png" alt="">
                            联系站长(反馈建议)</a>
                    </h4>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div id="footer-bottom">
            <a href="">粤ICP备18099781号-6</a> | <a href=""><img src="/1803010144/public/static/zhongkl_forum/images/警徽.png" alt="">粤公网安备 44030502004330号</a> | <a
                href="https://learnku.com/lk">违法和不良信息举报</a>
            <p class="ui inverted signature">由 <a href="https://learnku.com/contact">Summer</a> 设计和编码 <span>❤</span></p>
        </div>
    </div>
</body>

</html>